﻿using System;
using System.Linq;
using HtmlAgilityPack;
using IFDB.Models;
using IFDB.Models.Contexts;
using IFDB.ResourceLibrary;

namespace IFDB.Services.Foundation.Sites.Sources
{
    public abstract class BaseImport
    {
        public BaseImport(Site site)
        {
            this.Site = site;
        }

        protected Site Site;

        protected static HtmlDocument GetHtmlDocument(string url)
        {
            HtmlWeb web = new HtmlWeb();
            web.UsingCache = false;

            return web.Load(url);
        }
    }
}
